package com.yc.sole.erp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yc.sole.framework.mybatis.entity.BaseEntity;
import jakarta.persistence.*;
import lombok.Data;

/**
 * @author yizuomin
 * @date 2024/1/15 16:21
 **/
@Data
@Entity
@Table(name = "erp_output")
@TableName(value = "erp_output", autoResultMap = true)
public class Output extends BaseEntity {

    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 产量编号
     */
    @Column(columnDefinition = "VARCHAR(32) NOT NULL COMMENT '产量编号'")
    private String outputNo;
    /**
     * 班次id
     */
    @Column(columnDefinition = "BIGINT NOT NULL COMMENT '班次id'")
    private Long shiftId;
    /**
     * 班次名称
     */
    @Column(columnDefinition = "VARCHAR(50) NOT NULL COMMENT '班次名称'")
    private String shiftName;
    /**
     * 生产id
     */
    @Column(columnDefinition = "BIGINT NOT NULL COMMENT '排班id'")
    private Long produceId;
    /**
     * 生产编号
     */
    @Column(columnDefinition = "VARCHAR(32) NOT NULL COMMENT '生产编号'")
    private String produceNo;
    /**
     * 产品id
     */
    @Column(columnDefinition = "BIGINT NOT NULL COMMENT '产品id'")
    private Long productId;
    /**
     * 产品名称
     */
    @Column(columnDefinition = "VARCHAR(50) NOT NULL COMMENT '产品名称'")
    private String productName;
    /**
     * 生产数量
     */
    @Column(columnDefinition = "INT UNSIGNED NOT NULL COMMENT '生产数量'")
    private Integer quantity;
    /**
     * 生产日期
     */
    @Column(columnDefinition = "VARCHAR(20) NOT NULL COMMENT '生产日期'")
    private String outputDate;
}
